package com.chinackts.enterprise.controller;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.chinackts.enterprise.service.EnterpriseService;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Lianhong
 * @since 2021/11/2
 */
@RestController
public class EnterpriseController implements EnterpriseControllerInterface {

    @Resource
    private EnterpriseService enterpriseService;

    @Override
    public ResponseEntity<JSONObject> qualification(String id) {
        return ResponseEntity.ok(enterpriseService.qualification(id));
    }

    @Override
    public ResponseEntity<JSONObject> icCard(String id) {
        return ResponseEntity.ok(enterpriseService.icCard(id));
    }
}
